package cn.tutu.blockchain.minemachine.service;

import java.util.List;

import com.github.pagehelper.PageInfo;

import cn.tutu.blockchain.common.Page;
import cn.tutu.blockchain.minemachine.entity.Minemachine;

public interface MinemachineService {

	public void create(Minemachine nodeInfo);

	public void delete(String id);

	public PageInfo<Minemachine> getByUserId(String userId, Page page);

	public Minemachine getByMachineId(String mineMachineId);

	public int deleteByMacIdAndUserId(String userId, String mineMachineId);

	/**
	 * 获取修改时间超过一天的
	 * 
	 * @return
	 */
	public List<Minemachine> getByLastUpdateDate();

	/**
	 * 批量修改矿机
	 * 
	 * @param list
	 */
	public void updateStatusBatch(List<Minemachine> list);

}
